<?php
class connect{
	var $server;
	var $db;
	var $uname;
	var $password;
	var $con;

function connect(){
	include("config.php");
	$this->server   = $server;
	$this->db       = $db;
	$this->uname    = $uname;
	$this->password = $password;	
	$this->con = mysql_connect($this->server, $this->uname,  $this->password);
	mysql_select_db($this->db, $this->con);
}

function dissconnect(){
	mysql_close($this->con);
}

}

$con = new connect();

?>